#include <stdio.h>
#define SIXTY 60
int main(void)
{
    int time;
    int minutes, hour;

    printf("input the time in minutes: ");
    scanf("%d", &time);
    
    while ( time > 0)
    {
        hour = time / SIXTY;
        minutes = time % SIXTY;
        printf("%d hours %d minutes\n", hour, minutes);
        printf("input the time in minutes: ");
        scanf("%d", &time);
    }
    
    return 0;
}